# $Id: PKGBUILD 77850 2012-10-15 09:46:31Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=dangerdeep
pkgver=0.3.0
pkgrel=7
pkgdesc="submarine simulator"
arch=(i686 x86_64)
url="http://dangerdeep.sourceforge.net"
license=('GPL')
depends=('libgl' 'sdl_net' 'fftw' 'sdl_image' 'sdl_mixer' 'dangerdeep-data' 'glu')
makedepends=('scons' 'mesa')
source=("http://downloads.sourceforge.net/sourceforge/dangerdeep/dangerdeep-$pkgver.tar.gz"
	"build-fix.patch")
md5sums=('8a1d19326a9a0bd8bb91a652bfa51bd9'
         'a4487f079e844ec6b093ef97c151dcd7')

build() {
  cd $srcdir/$pkgname-$pkgver
  patch -p1 <$srcdir/build-fix.patch
  scons installbindir=$pkgdir/usr/bin datadir=/usr/share/dangerdeep install
}
